package cn.befory.pojo;

/**
 * 用户类
 * @author befory
 * @since 2019-08-19
 */
public class User {
    private Long id;

    private String loginName;

    private String password;

    /**
     * 注册时间
     */
    private Long registerTime;

    /**
     * 最近登陆时间
     */
    private Long recentLoginTime;

    /**
     * 登陆次数
     */
    private Integer loginCount;

    /**
     * 在线状态 0不在线1在线
     */
    private Integer online;

    /**
     * 在线状态 -1禁用0审核中1正常
     */
    private Integer status;

    /**
     * 1.超级管理员2经理3业务员
     */
    private Integer type;

    /**
     * 领导id
     */
    private Long leaderId;

    /**
     * 加密盐
     */
    private String salt;

    public Long getId() {
        return id;
    }

    public User setId(Long id) {
        this.id = id;
        return this;
    }

    public String getLoginName() {
        return loginName;
    }

    public User setLoginName(String loginName) {
        this.loginName = loginName;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public User setPassword(String password) {
        this.password = password;
        return this;
    }

    public Long getRegisterTime() {
        return registerTime;
    }

    public User setRegisterTime(Long registerTime) {
        this.registerTime = registerTime;
        return this;
    }

    public Long getRecentLoginTime() {
        return recentLoginTime;
    }

    public User setRecentLoginTime(Long recentLoginTime) {
        this.recentLoginTime = recentLoginTime;
        return this;
    }

    public Integer getLoginCount() {
        return loginCount;
    }

    public User setLoginCount(Integer loginCount) {
        this.loginCount = loginCount;
        return this;
    }

    public Integer getOnline() {
        return online;
    }

    public User setOnline(Integer online) {
        this.online = online;
        return this;
    }

    public Integer getStatus() {
        return status;
    }

    public User setStatus(Integer status) {
        this.status = status;
        return this;
    }

    public Integer getType() {
        return type;
    }

    public User setType(Integer type) {
        this.type = type;
        return this;
    }

    public Long getLeaderId() {
        return leaderId;
    }

    public User setLeaderId(Long leaderId) {
        this.leaderId = leaderId;
        return this;
    }

    public String getSalt() {
        return salt;
    }

    public User setSalt(String salt) {
        this.salt = salt;
        return this;
    }
}
